package com.ruoyi.project.cms.type.service.impl;

import com.ruoyi.common.utils.text.Convert;
import com.ruoyi.project.cms.type.mapper.CMSTypeRemoveMapper;
import com.ruoyi.project.cms.type.service.ICMSTypeRemoveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class CMSTypeRemoveServiceImpl implements ICMSTypeRemoveService {

    @Autowired
    private CMSTypeRemoveMapper cmsTypeRemoveMapper;
    @Override
    public int removeCMSTypeByIds(String ids) {
        Long[] typeIds = Convert.toLongArray(ids);

        return cmsTypeRemoveMapper.deleteCMSTypeByIds(typeIds);
    }
}
